/**
 * Created by Administrator on 2015/10/13.
 */

/*
*成员树的展开与收起
* */

define(function(require,exports, module){
    var $span = $("#homeMenu span");
    var $mmAll = $("#homeMenu .mm");   //#homeMenu 下所有的展开块

    $span.click(function(){
        var $this=$(this);
        var $mm =$this.siblings(".mm");   //当前展开块

        if(!$mm.is(":visible")){
            if($mm.length != 0){
                $mmAll.slideUp();
                $mm.slideDown();
            }
        }else{
            if($mm.length != 0){
                $mm.slideUp();
            }
        }
    })
})